package org.hxyjs.dao;

import org.hxyjs.entity.Activitytype;
import org.hxyjs.page.PageInfo;

import java.util.List;

public interface ActivitytypeDao {
    public List<Activitytype>  getAllActivitytypes()  throws Exception;

    /**
     * 查询全部
     * @param atno
     * @return
     * @throws Exception
     */
    public Activitytype  getActivitytypeByAtno(String atno)  throws Exception;

    /**
     * 根据主键删除
     * @param atno
     * @return
     * @throws Exception
     */
    //增删改的返回值都是整数
    Integer deleteActivitytypeByAtno(String atno)  throws Exception;

    /**修改
     *
     * @param activitytype
     * @return
     * @throws Exception
     */
    Integer updateActivitytype(Activitytype activitytype)  throws Exception;

    /**
     * 增加
     * @param activitytype
     * @return
     * @throws Exception
     */
    Integer addActivitytypeByAno(Activitytype activitytype)  throws Exception;

    List<Activitytype>  getActivitytypeByPage (PageInfo pageInfo) throws Exception;

}
